Optimal. Leaf size=101 \[ \frac{F\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{3 d}-\frac{4 \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{3 \sqrt{7} d}+\frac{\sqrt{4 \cos (c+d x)+3} \tan (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.256121, antiderivative size = 101, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.261, Rules used = {2802, 3060, 2653, 3002, 2661, 2805} \[ \frac{F\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{3 d}-\frac{4 \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{3 \sqrt{7} d}+\frac{\sqrt{4 \cos (c+d x)+3} \tan (c+d x)}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2802
Rule 3060
Rule 2653
Rule 3002
Rule 2661
Rule 2805
Rubi steps
\begin{align*} \int \frac{\sec ^2(c+d x)}{\sqrt{3+4 \cos (c+d x)}} \, dx &=\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac{1}{3} \int \frac{\left (-2-2 \cos ^2(c+d x)\right ) \sec (c+d x)}{\sqrt{3+4 \cos (c+d x)}} \, dx\\ &=\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{3 d}-\frac{1}{12} \int \frac{(8-6 \cos (c+d x)) \sec (c+d x)}{\sqrt{3+4 \cos (c+d x)}} \, dx-\frac{1}{6} \int \sqrt{3+4 \cos (c+d x)} \, dx\\ &=-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{3 d}+\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{3 d}+\frac{1}{2} \int \frac{1}{\sqrt{3+4 \cos (c+d x)}} \, dx-\frac{2}{3} \int \frac{\sec (c+d x)}{\sqrt{3+4 \cos (c+d x)}} \, dx\\ &=-\frac{\sqrt{7} E\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{3 d}+\frac{F\left (\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7} d}-\frac{4 \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{3 \sqrt{7} d}+\frac{\sqrt{3+4 \cos (c+d x)} \tan (c+d x)}{3 d}\\ \end{align*}
Mathematica [C] time = 1.10433, size = 158, normalized size = 1.56 \[ \frac{-\frac{6 \Pi \left (2;\frac{1}{2} (c+d x)|\frac{8}{7}\right )}{\sqrt{7}}+\sqrt{4 \cos (c+d x)+3} \tan (c+d x)+\frac{i \sin (c+d x) \left (-12 F\left (i \sinh ^{-1}\left (\sqrt{4 \cos (c+d x)+3}\right )|-\frac{1}{7}\right )+21 E\left (i \sinh ^{-1}\left (\sqrt{4 \cos (c+d x)+3}\right )|-\frac{1}{7}\right )-8 \Pi \left (-\frac{1}{3};i \sinh ^{-1}\left (\sqrt{4 \cos (c+d x)+3}\right )|-\frac{1}{7}\right )\right )}{3 \sqrt{7} \sqrt{\sin ^2(c+d x)}}}{3 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 2.809, size = 350, normalized size = 3.5 \begin{align*} -{\frac{1}{d}\sqrt{- \left ( -8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1 \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}} \left ( -{\frac{2}{3}\cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}} \left ( 2\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1 \right ) ^{-1}}+{\sqrt{ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}\sqrt{-8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1}{\it EllipticF} \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) ,2\,\sqrt{2} \right ){\frac{1}{\sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}}}}+{\frac{1}{3}\sqrt{ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}\sqrt{-8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1}{\it EllipticE} \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) ,2\,\sqrt{2} \right ){\frac{1}{\sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}}}}+{\frac{4}{3}\sqrt{ \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{2}}\sqrt{-8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}+1}{\it EllipticPi} \left ( \cos \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) ,2,2\,\sqrt{2} \right ){\frac{1}{\sqrt{-8\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{4}+7\, \left ( \sin \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}}}}} \right ) \left ( \sin \left ({\frac{dx}{2}}+{\frac{c}{2}} \right ) \right ) ^{-1}{\frac{1}{\sqrt{8\, \left ( \cos \left ( 1/2\,dx+c/2 \right ) \right ) ^{2}-1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec \left (d x + c\right )^{2}}{\sqrt{4 \, \cos \left (d x + c\right ) + 3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sec \left (d x + c\right )^{2}}{\sqrt{4 \, \cos \left (d x + c\right ) + 3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec ^{2}{\left (c + d x \right )}}{\sqrt{4 \cos{\left (c + d x \right )} + 3}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sec \left (d x + c\right )^{2}}{\sqrt{4 \, \cos \left (d x + c\right ) + 3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]